
<?php
    require_once '../DTO/KHACHHANG_DTO.php';
    require_once '../DTO/DOANHNGHIEP_DTO.php';
    require_once '../classes/xl_khach_hang.php';
    require_once '../classes/xl_doanh_nghiep.php';


    $kh = new KHACHHANG_DTO();
    $xl_kh = new xl_khach_hang();
    $dn = new DOANHNGHIEP_DTO();
    $xl_dn = new xl_doanh_nghiep();

    // thông tin khách hàng
    $kh->ho_ten = $_POST["dk_hoten"];
    $kh->chuc_vu = $_POST["dk_chucvu"];
    $kh->dien_thoai = $_POST["dk_mobile"];
    $kh->email = $_POST["dk_email"];

    //thông tin doanh nghiệp
    $dn->ten_dn = $_POST['dk_tencty'];
    $dn->dia_chi = $_POST['dk_diachi'];
    $dn->dien_thoai = $_POST['dk_dienthoai'];
    $dn->email = $_POST['dk_email'];
    $dn->website = $_POST['dk_website'];
    $dn->ten_giam_doc = $_POST['dk_giamdoc'];
    $dn->ma_so_thue = $_POST['dk_masothue'];
    $dn->gioi_thieu = $_POST['dk_ttatdan'];

    $xl_kh->them_giaodien($kh);
    $xl_dn->them($dn);

//&dk_tencty=&dk_diachi=&dk_dienthoai=&dk_fax=&dk_email2=&dk_website=&dk_giamdoc=&dk_masothue=&dk_ttatdan=&dk_ngayd=&dk_chitietban=&dk_lydo=&dk_ts1=&dk_so1=&dk_ts2=&dk_so2=&dk_ts3=&dk_so3=&dk_ts4=&dk_so4=&dk_tongtien=&dk_tongtien2=&dk_yeucau=&submit=G%E1%BB%ADi&check_send=true&frame=dk1
    echo $kh->ho_ten;


?>
